
import { HurtType, AttackType, BuffTargetType, TriggerType, TargetType, TargetRankType, TriggerTeamType } from "core/typeDefine/typeDefine";


export default {
    270501: {
        name: '治愈',
        desc: '从战斗开始每隔3回合,治疗血量最低的3名队友10%的血量',
        desc2: '治疗血量提升到15%',
        desc3: '治疗人数提升到4名',
        altarSkillIndex: 0,
        triggers: [{
            triggerType: TriggerType.RoundStart,
            triggerPer: [100, 0],
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerTimesInterval: 3, //触发次数间隔
            triggerEvents: [{
                eventName: 'cure',
                attriName: 'hp',
                targetType: TargetType.Partners,
                targetRankType: TargetRankType.LowHp,
                targetAmount: [3, 0], //治疗数量
                hpPer: [10, 0],
            }]

        }]
    },
    270502: {
        name: '治愈',
        desc: '从战斗开始每隔3回合,治疗血量最低的3名队友15%的血量',
        altarSkillIndex: 0,
        triggers: [{
            triggerType: TriggerType.RoundStart,
            triggerPer: [100, 0],
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerTimesInterval: 3, //触发次数间隔
            triggerEvents: [{
                eventName: 'cure',
                attriName: 'hp',
                targetType: TargetType.Partners,
                targetRankType: TargetRankType.LowHp,
                targetAmount: [3, 0], 
                hpPer: [15, 0],
            }]

        }]
    },
    270503: {
        name: '治愈',
        desc: '从战斗开始每隔3回合,治疗血量最低的4名队友15%的血量',
        altarSkillIndex: 0,
        triggers: [{
            triggerType: TriggerType.RoundStart,
            triggerPer: [100, 0],
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerTimesInterval: 3, //触发次数间隔
            triggerEvents: [{
                eventName: 'cure',
                attriName: 'hp',
                targetType: TargetType.Partners,
                targetRankType: TargetRankType.LowHp,
                targetAmount: [4, 0], //治疗数量
                hpPer: [15, 0],
            }]

        }]
    },
    270511: {
        name: '星落',
        desc: '己方英雄累计释放5次技能后,对所有敌人造成10%的最大生命值的真实伤害(不超过己方英雄总攻击力的2倍),并降低20%的生命恢复,持续2个回合',
        desc2: '对敌人造成的最大生命值的真实伤害提升到15%',
        desc3: '累计释放技能次数降低到4次',
        altarSkillIndex: 1,
        triggers: [{
            triggerType: TriggerType.OtherUseSkill,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
                triggerTeam: TriggerTeamType.Friend,
            },
            triggerTimesInterval: 5, //触发次数间隔
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'hurt',
                targetType: TargetType.OppentTeam,
                attriName: 'hp',
                decHpName: '星落',
                hpPer: [10, 0],
            }, {
                eventName: 'addBuff',
                buffID: 280100,
                targetType: TargetType.OppentTeam,
                buffAttris: {
                    recoverPer: -20,
                },
                round: 2,
            }]
        }]
    },
    270512: {
        name: '星落',
        desc: '己方英雄累计释放5次技能后,对所有敌人造成15%的最大生命值的真实伤害(不超过己方英雄总攻击力的2倍),并降低20%的生命恢复,持续2个回合',
        altarSkillIndex: 1,
        triggers: [{
            triggerType: TriggerType.OtherUseSkill,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
                triggerTeam: TriggerTeamType.Friend,
            },
            triggerTimesInterval: 5, //触发次数间隔
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'hurt',
                targetType: TargetType.OppentTeam,
                attriName: 'hp',
                decHpName: '星落',
                hpPer: [15, 0],
            }, {
                eventName: 'addBuff',
                buffID: 280100,
                targetType: TargetType.OppentTeam,
                buffAttris: {
                    recoverPer: -20,
                },
                round: 2,
            }]
        }]
    },
    270513: {
        name: '星落',
        desc: '己方英雄累计释放4次技能后,对所有敌人造成15%的最大生命值的真实伤害(不超过己方英雄总攻击力的2倍),并降低20%的生命恢复,持续2个回合',
        altarSkillIndex: 1,
        triggers: [{
            triggerType: TriggerType.OtherUseSkill,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
                triggerTeam: TriggerTeamType.Friend,
            },
            triggerTimesInterval: 4, //触发次数间隔
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'hurt',
                targetType: TargetType.OppentTeam,
                attriName: 'hp',
                decHpName: '星落',
                hpPer: [15, 0],
            }, {
                eventName: 'addBuff',
                buffID: 280100,
                targetType: TargetType.OppentTeam,
                buffAttris: {
                    recoverPer: -20,
                },
                round: 2,
            }]
        }]
    },
    270521: {
        name: '增幅',
        desc: '战斗开始时,己方攻击力最高的一名英雄,提升30%的攻击力,持续5回合',
        desc2: '攻击力提升至40%,持续回合提升到7回合',
        desc3: '攻击力提升至45%,持续到战斗结束',
        altarSkillIndex: 2,
        triggers: [{
            triggerType: TriggerType.BattleStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'addBuff',
                buffID: 280000,
                targetType: TargetType.Partners,
                targetRankType: TargetRankType.HighAttack,
                targetAmount: [1, 0],
                buffAttris: {
                    attackPer: 30,
                },
                round: 5,
            }]
        }]
    },
    270522: {
        name: '增幅',
        desc: '战斗开始时,己方攻击力最高的一名英雄,提升40%的攻击力,持续7回合',
        altarSkillIndex: 2,
        triggers: [{
            triggerType: TriggerType.BattleStart,
            triggerPer: [100, 0],
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerEvents: [{
                eventName: 'addBuff',
                buffID: 280000,
                targetType: TargetType.Partners,
                targetRankType: TargetRankType.HighAttack,
                targetAmount: [1, 0],
                buffAttris: {
                    attackPer: 40,
                },
                round: 7,
            }]
        }]
    },
    270523: {
        name: '增幅',
        desc: '战斗开始时,己方攻击力最高的一名英雄,提升45%的攻击力,持续到战斗结束',
        altarSkillIndex: 2,
        triggers: [{
            triggerType: TriggerType.BattleStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'addBuff',
                buffID: 280000,
                targetType: TargetType.Partners,
                targetRankType: TargetRankType.HighAttack,
                targetAmount: [1, 0],
                buffAttris: {
                    attackPer: 45,
                },
                round: 0,
            }]
        }]
    },
    270531: {
        name: '烈焰',
        desc: '每3回合,向血量最低的敌人发动一次攻击,造成队伍英雄总攻击力50%的伤害',
        desc2: '伤害提升至队伍英雄总攻击力65%',
        desc3: '伤害提升至队伍英雄总攻击力70%,并造成目标最大生命10%真实伤害(不超过队伍英雄总攻击的2倍)',
        altarSkillIndex: 3,
        triggers: [{
            triggerType: TriggerType.RoundStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerTimesInterval: 3, //触发次数间隔
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'attack',
                attackType: AttackType.Skill,
                hurtPer: [50, 0], //伤害百分比
                decHpName: '烈焰',
                hartedData: {
                    targetRankType: TargetRankType.LowHp,
                    targetAmount: [1, 0],  //目标数量
                }
            }]
        }]
    },
    270532: {
        name: '烈焰',
        desc: '每3回合,向血量最低的敌人发动一次攻击,造成队伍攻击力65%的伤害',
        altarSkillIndex: 3,
        triggers: [{
            triggerType: TriggerType.RoundStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerTimesInterval: 3, //触发次数间隔
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'attack',
                attackType: AttackType.Skill,
                hurtPer: [65, 0], //伤害百分比
                decHpName: '烈焰',
                hartedData: {
                    targetRankType: TargetRankType.LowHp,
                    targetAmount: [1, 0],  //目标数量
                }
            }]
        }]
    },
    270533: {
        name: '烈焰',
        desc: '每3回合,向血量最低的敌人发动一次攻击,造成队伍英雄总攻击力70%的伤害,并造成目标最大生命10%真实伤害(不超过队伍英雄总攻击的2倍)',
        altarSkillIndex: 3,
        triggers: [{
            triggerType: TriggerType.RoundStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerPer: [100, 0],
            triggerTimesInterval: 3, //触发次数间隔
            triggerEvents: [{
                eventName: 'attack',
                attackType: AttackType.Skill,
                hurtPer: [70, 0], //伤害百分比
                hpHurtPer: [10, 0],
                decHpName: '烈焰',
                hartedData: {
                    targetRankType: TargetRankType.LowHp,
                    targetAmount: [1, 0],  //目标数量
                }
            }]
        }]
    },
    270541: {
        name: '冰霜',
        desc: '每4个回合,对2名敌方(优先后排)造成已方队伍英雄总攻击力30%的伤害,并50%的概率对其造成冰冻,持续2回合',
        desc2: '敌方数量提升到3名',
        desc3: '触发回合减少到3个回合',
        altarSkillIndex: 4,
        triggers: [{
            triggerType: TriggerType.RoundStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerPer: [100, 0],
            triggerTimesInterval: 4, //触发次数间隔
            triggerEvents: [{
                eventName: 'attack',
                attackType: AttackType.Skill,
                hurtPer: [30, 0], //伤害百分比
                decHpName: '冰霜',
                hartedData: {
                    battlePosHatredID: 4,
                    targetAmount: [2, 0],
                }
            }]
        }, {
            triggerType: TriggerType.CalcDamageAfter,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
                triggerThisSkill: true,
            },
            triggerPer: [50, 0],
            triggerEvents: [{
                eventName: 'addBuff',
                buffID: 280110,
                targetType: TargetType.Stakeholder,
                round: 2,
            }]
        }]
    },
    270542: {
        name: '冰霜',
        desc: '每4个回合,对3名敌方(优先后排)造成已方队伍英雄总攻击力30%的伤害,并50%的概率对其造成冰冻,持续2回合',
        altarSkillIndex: 4,
        triggers: [{
            triggerType: TriggerType.RoundStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerPer: [100, 0],
            triggerTimesInterval: 4, //触发次数间隔
            triggerEvents: [{
                eventName: 'attack',
                attackType: AttackType.Skill,
                hurtPer: [30, 0], //伤害百分比
                decHpName: '冰霜',
                hartedData: {
                    battlePosHatredID: 4,
                    targetAmount: [3, 0],
                }
            }]
        }, {
            triggerType: TriggerType.CalcDamageAfter,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
                triggerisCrit: false,
                triggerisHit: false,
                triggerThisSkill: true,
            },
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'addBuff',
                buffID: 280110,
                targetType: TargetType.Stakeholder,
                round: 2,
            }]
        }]
    },
    270543: {
        name: '冰霜',
        desc: '每3个回合,对3名敌方(优先后排)造成已方队伍英雄总攻击力30%的伤害,并50%的概率对其造成冰冻,持续2回合',
        altarSkillIndex: 4,
        triggers: [{
            triggerType: TriggerType.RoundStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,

            },
            triggerPer: [100, 0],
            triggerTimesInterval: 3, //触发次数间隔
            triggerEvents: [{
                eventName: 'attack',
                attackType: AttackType.Skill,
                hurtPer: [30, 0], //伤害百分比
                decHpName: '冰霜',
                hartedData: {
                    battlePosHatredID: 4,
                    targetAmount: [3, 0],
                }
            }]
        }, {
            triggerType: TriggerType.CalcDamageAfter,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
                triggerisCrit: false,
                triggerisHit: false,
                triggerThisSkill: true,
            },
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'addBuff',
                buffID: 280110,
                targetType: TargetType.Stakeholder,
                round: 2,
            }]
        }]
    },
    270551: {
        name: '铁壁',
        desc: '每3个回合为己方最大生命的最高的英雄增加20%的护盾',
        desc2: '战斗开始,为己方最大生命的最高的英雄提升15%的防御',
        desc3: '防御提升至20%,护盾提升至25%',
        altarSkillIndex: 5,
        triggers: [{
            triggerType: TriggerType.RoundStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerPer: [100, 0],
            triggerTimesInterval: 3, //触发次数间隔
            triggerEvents: [{
                eventName: 'cure',
                targetType: TargetType.Partners, //触发目标 mySelf, partners, myTeam, target
                targetRankType: TargetRankType.HgihMaxHp,
                attriName: 'shield', //属性名hp, anger, shield, mp
                targetAmount: [1, 0], //治疗数量
                hpPer: [20, 0], //治疗百分比   
            }]
        }]
    },
    270552: {
        name: '铁壁',
        desc: '战斗开始,为己方最大生命的最高的英雄提升15%的防御,每3个回合为己方最大生命的最高的英雄增加20%的护盾',
        altarSkillIndex: 5,
        triggers: [{
            triggerType: TriggerType.BattleStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'addBuff',
                buffID: 280000,
                targetType: TargetType.Partners, //触发目标 mySelf, partners, myTeam, target
                targetRankType: TargetRankType.HgihMaxHp, //触发目标排名类型
                targetAmount: [1, 0],
                buffAttris: {
                    defPer: 15,
                },
                round: 0,
            }]
        }, {
            triggerType: TriggerType.RoundStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerPer: [100, 0],
            triggerTimesInterval: 3, //触发次数间隔
            triggerEvents: [{
                eventName: 'cure',
                targetType: TargetType.Partners, //触发目标 mySelf, partners, myTeam, target
                targetRankType: TargetRankType.HgihMaxHp,
                attriName: 'shield', //属性名hp, anger, shield, mp
                targetAmount: [1, 0], //治疗数量
                hpPer: [20, 0], //治疗百分比   
            }]
        }]
    },
    270553: {
        name: '铁壁',
        desc: '战斗开始,为己方最大生命的最高的英雄提升20%的防御,每3个回合为己方最大生命的最高的英雄增加20%的护盾',
        altarSkillIndex: 5,
        triggers: [{
            triggerType: TriggerType.BattleStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerPer: [100, 0],
            triggerEvents: [{
                eventName: 'addBuff',
                buffID: 280000,
                targetType: TargetType.Partners, //触发目标 mySelf, partners, myTeam, target
                targetRankType: TargetRankType.HgihMaxHp, //触发目标排名类型
                targetAmount: [1, 0],
                buffAttris: {
                    defPer: 20,
                },
                round: 0,
            }]
        }, {
            triggerType: TriggerType.RoundStart,
            triggerCondition: {
                triggerAttackType: AttackType.All,
                triggerHurtType: HurtType.All,
            },
            triggerPer: [100, 0],
            triggerTimesInterval: 3, //触发次数间隔
            triggerEvents: [{
                eventName: 'cure',
                targetType: TargetType.Partners, //触发目标 mySelf, partners, myTeam, target
                targetRankType: TargetRankType.HgihMaxHp,
                attriName: 'shield', //属性名hp, anger, shield, mp
                targetAmount: [1, 0], //治疗数量
                hpPer: [25, 0],
            }]
        }]
    },
}